package com.xmb.common.service.impl;

import com.xmb.common.dao.XmbConstantMessageMapper;
import com.xmb.common.entity.XmbConstantMessage;
import com.xmb.common.service.XmbConstantMessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lyndon on 2019/6/10.
 */
@Service
public class XmbConstantMessageServiceImpl implements XmbConstantMessageService{

    @Resource
    private XmbConstantMessageMapper constantMessageMapper;


    @Override
    public XmbConstantMessage findXmbConstantMessage(String businessGroup, String businessKey) {
        XmbConstantMessage message = new XmbConstantMessage();
        message.setBusinessGroup(businessGroup);
        message.setBusinessKey(businessKey);
        return constantMessageMapper.findXmbConstantMessage(message);
    }
}
